<?php
/**
 * @description 获取access_token 请求参数 client_id client_secret grant_type code
 * User: wangshuai
 * Date: 2021/9/6
 * Time: 14:45
 * Email: <1076890579@qq.com>
 */
// include our OAuth2 Server object
require_once 'server.php';
$server->handleTokenRequest(OAuth2\Request::createFromGlobals())->send();